/**
 * 
 */
package com.puneet.graphqueries.graphs;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import partitioner.DataAccessException;
import partitioner.NodeNotFoundException;
import partitioner.PartitionDAO;

/**
 * @author puneet
 *
 */
public class Neo4JPartitionImpl implements PartitionDAO {
	private String filename;
	private Map<String, Long> stringNodeIdMap = new HashMap<String, Long>();
	public Neo4JPartitionImpl(String sparseMatrixFilePath)throws IOException {
		this.filename = sparseMatrixFilePath;
		buildDatabase();
		
	}
	@Override
	public boolean containsNode(String node) throws DataAccessException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public List<String> getNeighbors(String node) throws NodeNotFoundException, DataAccessException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Map<String, List<String>> getNeighborsForAllNodes(List<String> nodes) throws NodeNotFoundException,
			DataAccessException {
		// TODO Auto-generated method stub
		return null;
	}
	
	private void buildDatabase()throws IOException {
		BufferedReader br = new BufferedReader(new FileReader(this.filename));
		String s;
		while((s=br.readLine()) != null) {
			String[] vals = s.split("\\s");
			String nodeName = vals[0];
			
		}
	}
}
